{% extends "base.html" %}

{% block title %}学员列表页{% endblock %}

{% block content %}

    <div class="middle">
        <div class="head-middle">

            <div class="add_middle">
                <a href="/add">新增</a>
            </div>
            <div class="search_middle">
                 <form action="/list" method="get">
                    <label></label>
                    <input type="text" placeholder="搜索内容" id ="search" name="search">
                    <input type="submit" value="搜索">
                </form>
            </div>
        </div>
        <table>
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>班级</th>
                <th>邮箱</th>
                <th>地址</th>
                <th>操作</th>
            </tr>
            {% for s in students %}
            <tr>
                <td>{{ s.sid }}</td>
                <td>{{ s.name }}</td>
                <td>{{ s.gender }}</td>
                <td>{{ s.age }}</td>
                <td>{{ s.s_class }}</td>
                <td>{{ s.email }}</td>
                <td>{{ s.dress }}</td>
                <td>
                    <a href="/modify/{{ s.sid }}">修改</a>
                    <a href="/delete/{{ s.sid }}">删除</a>
                </td>
            </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}